/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package cn.icanci.order.spi.dto;

import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * @author icanci
 * @date Created in 2021/04/29 11:53
 * @version 1.0
 */
@SuppressWarnings("all")
@Data
public class TicketDTO {
    /**
     * 主键，无意义
     */
    private Long       id;
    /**
     * 起飞城市
     */
    private String     startCity;
    /**
     * 抵达城市
     */
    private String     arriveCity;
    /**
     * 起飞时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date       startDate;
    /**
     * 抵达时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date       arriveDate;
    /**
     * 起飞城市三字码
     */
    private String     startCityCode;
    /**
     * 抵达城市三字码
     */
    private String     arriveCityCode;
    /**
     * 航司
     */
    private String     gds;
    /**
     * 机票价格
     */
    private BigDecimal price;
    /**
     * 机票舱等
     */
    private Integer    ticketLevel;
    /**
     * 机票的状态 1:未售出 0 已经售出
     */
    private Integer    status;
    /**
     * 机票的创建时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date       createTime;
    /**
     * 机票更新时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date       updateTime;
    /**
     * 航班号
     */
    private String     flightNumber;
    /**
     * 座位号
     */
    private String     seatNumber;
    /**
     * 客机类型
     */
    private Integer    aircraftNumber;
}
